{% extends 'base.html' %}

{% block content %}
<title>
    登录 - 畅聊
</title>

{% if form.error %}
<p>error</p>
{% endif %}
<form action="{% url 'users:login' %}" method="post">
    {% csrf_token %}
    {{form.as_p}}
    <button>登录</button>
    <input name="next" type="hidden" value="{% url 'chat:index' %}">
</form>
<br/>
<button onclick='location.href="{% url 'users:register' %}"'>注册</button>

{% endblock content %}

